package com.cn.service.impl;

import com.cn.pojo.Admin;
import com.cn.service.AdminService;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Override
    public Admin findByLogin(Admin admin) {
        if (admin.getPassword().equals("123") && admin.getUsername().equals("123")){
            return new Admin();
        }
        return null;
    }
}
